package com.huaweicloud.servicestage.command;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;

@Parameters(separators = "=", commandDescription = "Upgrade component")
public class CommandUgrade {
    @Parameter(names = {"--region", "-r"}, description = "Region", required = true, order = 0)
    private String region;

    @Parameter(names = {"--applicationId", "-a"}, description = "Application id", required = true, order = 1)
    private String applicationId;

    @Parameter(names = {"--componentId", "-c"}, description = "Component id", required = true, order = 2)
    private String componentId;

    @Parameter(names = {"--instanceId", "-i"}, description = "Instance id", required = true, order = 3)
    private String instanceId;

    @Parameter(names = {"--packageUrl", "-p"}, description = "Package url", required = true, order = 4)
    private String packageUrl;

    public String getRegion() {
        return region;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public String getComponentId() {
        return componentId;
    }

    public String getInstanceId() {
        return instanceId;
    }

    public String getPackageUrl() {
        return packageUrl;
    }
}
